<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {% load static %}
    <link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
</head>
<body>
    {% if question_list %}
    <ul>
        {% for q in question_list %}
{#            <li><a href="http://127.0.0.1:8000/polls/{{ q.id }}">{{ q.text }}</a></li>#}
            <li><a href="{% url 'polls:detail' q.id %}">{{ q.text }}</a></li>
        {% endfor %}
    </ul>
    {% else %}
        <p>没有信息，添加一个问题以开始。</p>
    {% endif %}
</body>
</html>